﻿@model AuditWeb.Models.AdminArchiveModel

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
    IEnumerable<AuditModel.Archive> archives = (List<AuditModel.Archive>)ViewBag.Archives;
    ViewBag.AAM = Model;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script type="text/javascript">
    $(function () {
        $('#Date').blur(
        function () {
            //alert($(this).val());
            $(this).val($(this).val().replace("：", ":"));
        }
        );
    });
</script>

<h2>@AuditResources.Archive.ObjectName<text>管理</text></h2>
<div class="padding_panel">
@using(Html.BeginForm("Archives"))
{
    @Html.Hidden("id", Model.AnnualEventId)
    @AuditResources.Archive.ObjectName<text>:</text> @Html.TextBox("archiveid") <text>&nbsp;</text>
    @AuditResources.Subject.ObjectName<text>:</text> @Html.DropDownList("SubjectId",AuditResources.UI.All) <text>&nbsp;</text>
    @AuditResources.County.ObjectName<text>:</text> @Html.DropDownList("CountyCode", AuditResources.UI.All) <text>&nbsp;</text>
     <input type="submit" value="@AuditResources.UI.Search" /> 
}
</div>
@using (Html.BeginForm("SetDate", "Admin"))
{
    @Html.ValidationSummary(true)
    @Html.Partial("_ArchivesGrid", archives)
    <div class="padding_panel">    
    <text>批量设置: </text>
        <select name="DateType">
    <option value="1" selected>开始评分日期</option>
    <option value="2">截止评分日期</option>
    <option value="0">听课日期</option>
     <option value="3">听课时间</option>
    </select>
    <text>设定值: </text>
    <input id="Date" name="Date" type="text" value="" />
    @Html.ValidationMessageFor(model => model.Date)
    @Html.HiddenFor(model => model.AnnualEventId)
    @Html.HiddenFor(model => model.ArchiveId)
    @Html.HiddenFor(model => model.CountyCode)
    @Html.HiddenFor(model => model.SubjctId)
    <input type="submit" value="设置" />
    <div>(注意：日期填写格式yyyy-mm-dd，如2012-12-24; 时间格式24小时制hh:mm，如8:00, 20:00)</div>
    </div>
}

